//
//  LoginViewController.m
//  基本框架
//
//  Created by runone02 on 2018/6/29.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import "LoginViewController.h"
#import "LoginView.h"
@interface LoginViewController ()
@property (nonatomic, strong) LoginView *loginView;

@end

@implementation LoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupMainView];
}

- (void) viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
}

- (void) viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    [UIApplication sharedApplication].statusBarStyle = UISearchBarStyleDefault;
}

- (void) setupMainView{
    self.loginView = [[LoginView alloc]initWithFrame:CGRectZero];
    [self.view addSubview:self.loginView];
    
    [self.loginView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.mas_equalTo(self.view);
        make.top.mas_equalTo(0+KStatusBarHeight);
    }];
    [self.loginView.superview layoutIfNeeded];
    [self.loginView setupUI];
}


@end
